import * as graphqlApis from "./article.graphql";
import * as httpApis from "./article.http";
import type { ArticleApis } from "./article.types";

const apis: ArticleApis = import.meta.env.VITE_API_TYPE === "graphql" ? graphqlApis : httpApis;

export default apis;

export type {
  ArticleCreateInput,
  ArticlesGetInput,
  ArticleUpdateInput,
  ArticleView,
} from "./article.types";
